package com.cyq.day18.book;

public class Book {
    private int bookNum;
    private String bookName;
    private String author;
    private double price;
    private int hotNum;

    @Override
    public String toString() {
        return "Book{" +
                "bookNum=" + bookNum +
                ", bookName='" + bookName + '\'' +
                ", author='" + author + '\'' +
                ", price=" + price +
                ", hotNum=" + hotNum +
                '}';
    }

    public Book() {
    }

    public Book(int bookNum, String bookName, String author, double price, int hotNum) {
        this.bookNum = bookNum;
        this.bookName = bookName;
        this.author = author;
        this.price = price;
        this.hotNum = hotNum;
    }

    public int getBookNum() {
        return bookNum;
    }

    public void setBookNum(int bookNum) {
        this.bookNum = bookNum;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getHotNum() {
        return hotNum;
    }

    public void setHotNum(int hotNum) {
        this.hotNum = hotNum;
    }
}
